<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
<style>
.listorder {width:60px;text-align:center;}
</style>
</block>

<block name="main">
	<div class="pd-20">
		<php>
			$result = _get_list_data('/Ygcl/Recordadmin/sigle/',$_GET,$map,D('LessonRecord'),'','id desc');
			$types = array('add'=>'添加','update'=>'更新','remark'=>'修改备注','midpay'=>'中途报名');
		</php>
		<form class="mini-form">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="25">ID</th>
					<th width="30">操作员</th>
					<th width="100">换前学期</th>
					<th width="100">换后学期</th>
					<th width="100">换前课程</th>
					<th width="100">换后课程</th>
					<th>备注</th>
					<th width="50">类型</th>
					<!-- <th width="120">操作</th> -->
				</tr>
			</thead>
			<tbody>
				<foreach name="result['data']['list']" item="vo">
				<tr class="text-c">
					<td><input type="checkbox" value="{$vo['id']}" name="ids[]"></td>
					<td>{$vo['id']}</td>
					<td><if condition="$vo['user']['realname']">{$vo['user']['realname']}<else/>{$vo['user']['username']}</if></td>
					<td>{$vo.original_term.title}</td>
					<td>{$vo.next_term.title}</td>
					<td>{$vo.original_lesson.lessonname}</td>
					<td>{$vo.next_lesson.lessonname}</td>
					<td>{$vo.remark}</td>
					<td>{$types[$vo['type']]}</td>
					<!-- <td class="f-14 td-manage">
						<a style="text-decoration:none" class="ml-5" onclick="open_iframe_dialog('{:U('edit',array('id'=>$vo['id']))}','编辑备注',['750px','350px'],1)" href="javascript:;" title="编辑备注"><i class="Hui-iconfont"></i></a>
            			<a style="text-decoration:none" class="ml-5 mini_del" data-url="{:U('del','ids='.$vo['id'])}" href="javascript:;" title="删除"><i class="Hui-iconfont"></i></a>
					</td> -->
				</tr>
				</foreach>
			</tbody>
		</table>
		</form>
		{$result['pagetpl']}
	</div>
	
	
</block>

<block name="script">
<script>
$(function(){
	$('.mini-time').datepicker();
});
</script>
</block>